package com.juren;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @ClassName ConfigServerApp
 * @Description
 * @Author zhangtao
 * @Date 2019/5/20 9:32
 * @Version 1.0
 **/
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
    /**
    <P>
     Spring Cloud从Edgware版本开始，服务注册发现功能改为只要依赖了以spring-cloud-starter-netflix为前缀的库就能开启@EnableEurekaClient
     @EnableEurekaClient is optional if we have the spring-cloud-starter-netflix-eureka-client dependency on the classpath
    </p>
    */
public class ConfigClientApp {
    public static void main(String[] args) {
        SpringApplication.run(ConfigClientApp.class,args);
    }
}
